package com.ldcc.report_system.adapter;

import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.ldcc.report_system.R;

/**
 * @author wwj[yeshengkele@outlool.com]
 * @description 列表界面适配器
 */
public class ReportListItemViewHolder extends RecyclerView.ViewHolder {
    // 顶栏日期
    private TextView topCreateDate;
    // 顶栏周数
    private TextView topCreateWeek;
    // 头像
    private ImageView userInfoHead;
    // 用户名
    private TextView name;
    // 日期
    private TextView gmtCreateDate;
    // 时间
    private TextView gmtCreateTime;
    // 更多按钮
    private LinearLayout theMoreBtn;
    // 完成工作
    private TextView finish;

    // 日报可点击区域
    private LinearLayout reportBox;

    // 汇报类型
    private TextView reportType;

    public ReportListItemViewHolder(@NonNull View itemView) {
        super(itemView);
        this.topCreateDate = itemView.findViewById(R.id.top_create_date);
        this.topCreateWeek = itemView.findViewById(R.id.top_create_week);
        this.userInfoHead = itemView.findViewById(R.id.user_info_head);
        this.name = itemView.findViewById(R.id.name);
        this.gmtCreateDate = itemView.findViewById(R.id.gmt_create_date);
        this.gmtCreateTime = itemView.findViewById(R.id.gmt_create_time);
        this.theMoreBtn = itemView.findViewById(R.id.the_more_btn);
        this.finish = itemView.findViewById(R.id.finish);
        this.reportType = itemView.findViewById(R.id.report_type);
        this.reportBox = itemView.findViewById(R.id.reportBox);
    }

    public LinearLayout getReportBox() {
        return reportBox;
    }

    public void setReportBox(LinearLayout reportBox) {
        this.reportBox = reportBox;
    }

    public TextView getTopCreateDate() {
        return topCreateDate;
    }

    public void setTopCreateDate(TextView topCreateDate) {
        this.topCreateDate = topCreateDate;
    }

    public TextView getTopCreateWeek() {
        return topCreateWeek;
    }

    public void setTopCreateWeek(TextView topCreateWeek) {
        this.topCreateWeek = topCreateWeek;
    }

    public ImageView getUserInfoHead() {
        return userInfoHead;
    }

    public void setUserInfoHead(ImageView userInfoHead) {
        this.userInfoHead = userInfoHead;
    }

    public TextView getName() {
        return name;
    }

    public void setName(TextView name) {
        this.name = name;
    }

    public TextView getGmtCreateDate() {
        return gmtCreateDate;
    }

    public void setGmtCreateDate(TextView gmtCreateDate) {
        this.gmtCreateDate = gmtCreateDate;
    }

    public TextView getGmtCreateTime() {
        return gmtCreateTime;
    }

    public void setGmtCreateTime(TextView gmtCreateTime) {
        this.gmtCreateTime = gmtCreateTime;
    }

    public LinearLayout getTheMoreBtn() {
        return theMoreBtn;
    }

    public void setTheMoreBtn(LinearLayout theMoreBtn) {
        this.theMoreBtn = theMoreBtn;
    }

    public TextView getFinish() {
        return finish;
    }

    public void setFinish(TextView finish) {
        this.finish = finish;
    }

    public TextView getReportType() {
        return reportType;
    }

    public void setReportType(TextView reportType) {
        this.reportType = reportType;
    }
}
